var container = document.getElementsByClassName("container")[0];
var L2Dconfig = {
    model: {
        jsonPath: "https://npm.elemecdn.com/live2d-widget-model-wanko@1.0.5/assets/wanko.model.json",
        scale: 1
    },
    display: {
        position: "left", //模型的表现位置
        width: 150, //模型的宽度
        height: 150, //模型的高度
        hOffset: 0,
        vOffset: -300,
    },
    mobile: {
        show: false,
        scale: 0.5,
    },
    react: {
        opacityDefault: 0.7, //模型默认透明度
        opacityOnHover: 0.2,
    },
};
window.onload = function () {
    var l2d = document.getElementById("live2d-widget");
    l2d.display = 'block';
    l2d.style.position = "relative";
    // l2d.style.display = "block";
    l2d.style.top = "50%";
    l2d.style.left = "50%";
    l2d.style.transform = "translate(-50%, -200%)";
};